package com.iOS.service;

import com.iOS.dto.UserInfoExecution;
import com.iOS.entity.UserInfo;
import org.springframework.stereotype.Service;

import java.io.InputStream;

@Service
public interface IUserInfoService {
    /**
     * @Author:WenTao
     * @Description:用户注册
     * @Date:13:14 2018/9/20
     */
    UserInfoExecution Register(String username, String password_1, String password_2);

    /**
     * @Author:WenTao
     * @Description:用户登陆
     * @Date:13:34 2018/9/20
     */
    UserInfoExecution Login(String username, String password);

    /**
     * @Author:WenTao
     * @Description:获取用户信息
     * @Date:13:47 2018/9/20
     */
    UserInfoExecution GetUserInfo(String token);

    /**
     * @Author:WenTao
     * @Description:用户信息完善
     * @Date:14:11 2018/9/20
     */
    UserInfoExecution CompleteUserInfo(UserInfo userInfo, String token, InputStream HeadImgInputStream, String filename);
}
